package com_djm_2025_06_02;

/**
 * 测试类
 *
 * @author dengjiangming
 * @version 1.0.0
 * @date 2025-06-02
 */
public class Test {

    public static void main(String[] args) {
        //用new关键字实例化对象
        Student stu = new Student();
        //通过.访问对象的成员变量（属性）
        stu.name = "马车";
        stu.age = 18;
        stu.className = "Java";
        stu.AverageGradePoint = 3.6;
        stu.high = 1.82;
        stu.weigh = 80;
        //通过.访问对象的成员方法
        stu.goToSchool();
        stu.doHomeWork();
        stu.play();
        //打印类的成员
        System.out.println(stu.name);
        System.out.println(stu.age);
        System.out.println(stu.className);
        System.out.println(stu.AverageGradePoint);
        System.out.println(stu.high);
        System.out.println(stu.weigh);
    }
}
